package net.onceface.application.dto;

import java.io.Serializable;
import java.util.Date;

import javax.ws.rs.FormParam;
import javax.xml.bind.annotation.XmlRootElement;

import org.springframework.format.annotation.DateTimeFormat;

@XmlRootElement
public class PersonDTO implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 4669504872315960233L;

	@FormParam("id")
	private Long id;
	
	private Integer version;
	
	@FormParam("name")
	private String name;
	
	@FormParam("gender")
	private String gender;
	
	@FormParam("idNumber")
	private String idNumber;
	
	@FormParam("mobilePhone")
	private String mobilePhone;
	
	@FormParam("familyPhone")
	private String familyPhone;
	
	@FormParam("email")
	private String email;
	
	@FormParam("qq")
	private String qq;
	
	@FormParam("address")
	private String address;
	
	@FormParam("blog")
	private String blog;
	
	@FormParam("birthday")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date birthday;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getIdNumber() {
		return idNumber;
	}

	public void setIdNumber(String idNumber) {
		this.idNumber = idNumber;
	}

	public String getMobilePhone() {
		return mobilePhone;
	}

	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}

	public String getFamilyPhone() {
		return familyPhone;
	}

	public void setFamilyPhone(String familyPhone) {
		this.familyPhone = familyPhone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getBlog() {
		return blog;
	}

	public void setBlog(String blog) {
		this.blog = blog;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
}
